/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tbv_regionCriteria extends AbstractORMCriteria {
	public final IntegerExpression re_id_region;
	public final StringExpression re_region;
	public final StringExpression re_numero;
	
	public Tbv_regionCriteria(Criteria criteria) {
		super(criteria);
		re_id_region = new IntegerExpression("re_id_region", this);
		re_region = new StringExpression("re_region", this);
		re_numero = new StringExpression("re_numero", this);
	}
	
	public Tbv_regionCriteria(PersistentSession session) {
		this(session.createCriteria(Tbv_region.class));
	}
	
	public Tbv_regionCriteria() throws PersistentException {
		this(orm.Bdvendomaticav04PersistentManager.instance().getSession());
	}
	
	public Tbv_provinciaCriteria createTbv_provinciaCriteria() {
		return new Tbv_provinciaCriteria(createCriteria("ORM_Tbv_provincia"));
	}
	
	public Tbv_region uniqueTbv_region() {
		return (Tbv_region) super.uniqueResult();
	}
	
	public Tbv_region[] listTbv_region() {
		java.util.List list = super.list();
		return (Tbv_region[]) list.toArray(new Tbv_region[list.size()]);
	}
}

